#ifndef WAGONTIMER_H
#define WAGONTIMER_H

#include "helicopterform.h"
#include "wagon.h"
#include "person.h"
#include <QTimer>
#include <QMovie>

class WagonTimer : public QTimer
{
    Q_OBJECT

    signals:

    public:
        WagonTimer(QObject*);
        QWidget *object;
        void SetAction(int act);
        void MoveRight();
        void StopMove();
        void MoveLeft();
        int GetAction();

    protected:

    private slots:
        void inc();

    private:
        int action; // 0 = move right, 1 = move left
        bool isMoving;
};

#endif // WAGONTIMER_H
